package com.fy.admin.feign;

import com.fy.admin.vo.EnterpriseVo;
import com.fy.admin.vo.PersonalVo;
import com.fy.admin.vo.SupplierVo;
import com.fy.common.api.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name = "domain-merchant")
public interface MerchantManagementFeignService {

    //企业审核------------------------------------------
    @GetMapping(value = "/enterprise/findAll/{pageSize}/{limit}")
     CommonResult enterpriseFindAll(@PathVariable Integer pageSize, @PathVariable Integer limit) ;


    @GetMapping(value = "/enterprise/findById/{id}")
     CommonResult enterpriseFindById(@PathVariable Integer id);


    @PostMapping(value = "/enterprise/updateState/{enterpriseId}/{operatorId}/{enable}")
     CommonResult enterpriseUpdateState(@PathVariable Integer id);

    //个人审核
    //个人审核---------------------------------------
    @GetMapping(value = "/personal/findAll/{pageSize}/{limit}")
     CommonResult personalFindAll(@PathVariable Integer pageSize, @PathVariable Integer limit) ;

    @GetMapping(value = "/personal/findById/{id}")
     CommonResult personalFindById(@PathVariable Integer id);

    @PostMapping(value = "/personal/updateState/{personalId}/{operatorId}/{enable}")
     CommonResult personalUpdateState(@PathVariable Integer id);


    //景区商户--------------------------------------------------
    @GetMapping(value = "/scenic/findAll/{pageSize}/{limit}")
     CommonResult scenicFindAll(@PathVariable Integer pageSize, @PathVariable Integer limit) ;

    @GetMapping(value = "/scenic/findById/{id}")
     CommonResult scenicFindById(@PathVariable Integer id);

    @PostMapping(value = "/scenic/updateState/{scenicId}/{operatorId}/{enable}")
     CommonResult scenicUpdateState(@PathVariable Integer id);


    //景区商品--------------------------------------------------
    @GetMapping(value = "/product/findAll")
     CommonResult productFindAll();

    @GetMapping(value = "/product/findById/{id}")
     CommonResult productFindById(@PathVariable Integer id);

    @PostMapping(value = "/product/updateState/{productId}/{operatorId}/{enable}")
     CommonResult productUpdateState(@PathVariable Integer id);
}
